package com.tfswx.ruleengine.database.bean.table;

import com.tfswx.ruleengine.database.bean.BaseTable;
import com.tfswx.ruleengine.database.bean.TabeleField;
import com.tfswx.ruleengine.database.bean.Zdlx;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ricky
 * @date 2022/3/1
 */
public class GzdyTable extends BaseTable {
    @Override
    public String getTableName() {
        return "T_GZYQ_XT_GZDY";
    }

    @Override
    public String getTableComment() {
        return "规则定义表";
    }

    @Override
    public List<TabeleField> getFieldList() {
        List<TabeleField> gzdyFieldList = new ArrayList<>();
        gzdyFieldList.add(new TabeleField("GZBM", Zdlx.CHAR, 32, true, "规则编码"));
        gzdyFieldList.add(new TabeleField("GZMC", Zdlx.VARCHAR, 300, false, "规则名称"));
        gzdyFieldList.add(new TabeleField("GZMS", Zdlx.VARCHAR, 4000, false, "规则描述"));
        gzdyFieldList.add(new TabeleField("GZFLBM", Zdlx.CHAR, 32, false, "规则分类编码"));
        gzdyFieldList.add(new TabeleField("GZBDS", Zdlx.VARCHAR, 4000, false, "规则表达式"));
        gzdyFieldList.add(new TabeleField("BMJH", Zdlx.VARCHAR, 1000, false, "表名集合"));
        gzdyFieldList.add(new TabeleField("ZDJH", Zdlx.VARCHAR, 1000, false, "字段集合"));
        gzdyFieldList.add(new TabeleField("SFQY", Zdlx.CHAR, 1, false, "是否启用"));
        gzdyFieldList.add(new TabeleField("GZPZ", Zdlx.VARCHAR, 4000, false, "规则配置"));
        //        gzdyFieldList.add(new TabeleField("GZLX", Zdlx.CHAR, 1, false, "规则类型"));
        //        gzdyFieldList.add(new TabeleField("WTLX", Zdlx.CHAR, 1, false, "问题类型"));
        //        gzdyFieldList.add(new TabeleField("XGJY", Zdlx.VARCHAR, 300, false, "修改建议"));
        gzdyFieldList.add(new TabeleField("PX", Zdlx.INTEGER, 13, false, "排序"));
        gzdyFieldList.add(new TabeleField("SFSC", Zdlx.CHAR, 1, false, "是否删除"));
        gzdyFieldList.add(new TabeleField("CJSJ", Zdlx.TIMESTAMP, null, false, "创建时间"));
        gzdyFieldList.add(new TabeleField("ZHXGSJ", Zdlx.TIMESTAMP, null, false, "最后修改时间"));

        return gzdyFieldList;
    }
}
